<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" ></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css" ></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/deviceParts/save" method="post">
  			<input type="hidden" value="${obj.parts_id}" id="partsId" name="p_partsId" />
  			<div class="box">
	  			<table cellspacing="0" cellpadding="0">
	  				<tbody>
						<tr>
							<td class="message">
								<p><span>*</span>配件编号：</p>
							</td>
							<td>
								<input type="text" id="partsCode" name="p_partsCode" value="${obj.parts_code }"
									class="wd170 " ${disabled } maxLength="42" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>入库时间：</p>
							</td>
							<td>
								<input type="text" id="storageTime" name="p_storageTime" value="${not empty obj.storage_time_ ? obj.storage_time_ : now  }"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})"  ${disabled } 
									class="wd170 Wdate" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>配件名称：</p>
							</td>
							<td>
								<input type="text" id="partsName" name="p_partsName" value="${obj.parts_name }"
									class="wd170 " ${disabled } maxLength="42" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>规格/型号：</p>
							</td>
							<td>
								<input type="text" id="partsSpec" name="p_partsSpec" value="${obj.parts_spec }"
									class="wd170 " ${disabled } maxLength="42" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>入库数量：</p>
							</td>
							<td>
							<%-- ${obj.parts_num } --%>
								<input type="text" id="partsNum" name="p_partsNum" value="1" readonly="readonly"
									class="wd170 " ${disabled } maxLength="42" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>经办人：</p>
							</td>
							<td>
								<input type="text" id="partsOper" name="p_partsOper" value="${obj.parts_oper }"
									class="wd170 " ${disabled } maxLength="42" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>备注：</p>
							</td>
							<td>
								<input type="text" id="remark" name="p_remark" value="${obj.remark }"
									class="wd170 " ${disabled } maxLength="100" style="width: 100%;" />
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
</html>